<?php

namespace models\Exception\Business;

use Exception;


class AnnounceException extends Exception {
    const ANNOUNCE_IS_NOT_EXISTS = '消息不存在';

    const ANNOUNCE_IS_NOT_EXISTS_NO = '404';

    const ANNOUNCE_CREATE_FAILURE = '消息创建失败';

    const ANNOUNCE_CREATE_FAILURE_NO = '422';

    const ANNOUNCE_EDIT_FAILURE = '消息编辑失败';

    const ANNOUNCE_EDIT_FAILURE_NO = '422';

    const ANNOUNCE_ID_IS_EMPTY = '消息编号不能为空';

    const ANNOUNCE_ID_IS_EMPTY_NO = '400';

    const ANNOUNCE_INVALID = "无效消息";
    const ANNOUNCE_INVALID_NO = "400";

    const ANNOUNCE_NOT_PUSH = "消息不需要推送";
    const ANNOUNCE_NOT_PUSH_NO = "400";

    const INVALID_MSG_ID = "消息编号必须为int";
    const INVALID_MSG_ID_NO = "400";

    const INVALID_PUSH_MSG = "推送消息不能为空";
    const INVALID_PUSH_MSG_NO = "400";


}
